package com.lanou3g.ptp.teachlink.mapper;

import com.lanou3g.ptp.entity.Teachlink;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface TeachlinkMapper {
    List<Teachlink> findAll();

    List<Teachlink> findByKeyword(String keyword);

    Teachlink findById(Long id);

    void insert(Teachlink teachlink);

    void update(@Param("id")Long id,@Param("t") Teachlink teachlink);

    void delete(Long id);

    void deletes(Long[] ids);
}
